package org.dftproject.lineagelinkage.core.agents;

import org.dftproject.genesis.core.collections.CollectionManager;
import org.dftproject.genesis.core.persistence.IMemento;
import org.dftproject.genesis.core.persistence.IPersistenceFactory;

public class FindDuplicatesAgentFactory implements IPersistenceFactory {
	
	public static final String ID = FindDuplicatesAgentFactory.class.getName();

	public Object createObject(IMemento memento) {
		return new FindDuplicatesAgent(memento.getString("id"), CollectionManager.getDefault().getCollection(memento.getString("collectionId")));
	}

}
